import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;

/**
 * @author : niu niu
 * @version : 1.0.0
 * @date : 2022/10/24 17:06
 *  参数解析
 *  跳石板
 */
public class Day13 {
    public static void main(String[] args) {

    }
//     *  参数解析
    public static void main1(String[] args) {
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()){
            String str = scanner.nextLine();
            char[] chars = str.toCharArray();
            boolean left = false;
            List<String> list = new ArrayList<String>();
            String temp = "";
            for (int i = 0; i < chars.length; i++) {
                if (chars[i] == '\"' && !left){
                    left = true;
                    continue;
                }
                if (chars[i] == '\"' && left){
                    left = false;
                    continue;
                }
                if (chars[i] == ' ' && left){
                    temp += chars[i];
                    continue;
                }
                if (chars[i] == ' '){
                    list.add(temp);
                    temp = "";
                    continue;
                }
                temp+=chars[i];
            }
            list.add(temp);
            System.out.println(list.size());
            for (int i = 0; i < list.size()  ;i++) {
                System.out.println(list.get(i));
            }
        }
    }
}
